#include<iostream>
#include"stock10.h"
int main()
{
    using std::cout;
    cout<<"  使用构造函数来创建新对象\n";
    Stock stock1("NASA",20,23.2);
    stock1.show();
    Stock stock2=Stock("huashou technology company",3,2.4);
    stock2.show();

    cout<<"将A分配给B\n";
    stock2=stock1;
    stock1.show();
    stock2.show();
    cout<<"使用构造函数重新设置一个对象\n";
    stock1=Stock("yelan company",34,54.5);
    cout<<"修改的stock1:\n";
    stock1.show();
    cout<<"结束\n";
    return 0;
}